package com.project.bookstore.book.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.experimental.Accessors;

@TableName(value ="book")
@Data
@Accessors(chain = true)
public class BookIndex {
    //book的属性
    private Long id;
    private String indexName;//'书下面的内容'
    private String author;// '作者',
    private String press;// '出版社',
    private Double price;//'价格',
    private Double oldPrice;//'原价',
    private String info;//'简介',
    private int stock;//'库存',
    private int saleCount;//'销量',
    private String classify;//'分类',
    private String picture;//'图片',
    private Long folio;//'开本',
    /*paper VARCHAR(32) COMMENT '纸张',
    isbn BIGINT COMMENT '国际标准书号',
    comment_id INT COMMENT '评论id');*/

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getIndexName() {
        return indexName;
    }

    public void setIndexName(String indexName) {
        this.indexName = indexName;
    }

    public String getAuthor() {
        return author;
    }

    public void setAuthor(String author) {
        this.author = author;
    }

    public String getPress() {
        return press;
    }

    public void setPress(String press) {
        this.press = press;
    }

    public Double getPrice() {
        return price;
    }

    public void setPrice(Double price) {
        this.price = price;
    }

    public Double getOldPrice() {
        return oldPrice;
    }

    public void setOldPrice(Double oldPrice) {
        this.oldPrice = oldPrice;
    }

    public String getInfo() {
        return info;
    }

    public void setInfo(String info) {
        this.info = info;
    }

    public int getStock() {
        return stock;
    }

    public void setStock(int stock) {
        this.stock = stock;
    }

    public int getSaleCount() {
        return saleCount;
    }

    public void setSaleCount(int saleCount) {
        this.saleCount = saleCount;
    }

    public String getClassify() {
        return classify;
    }

    public void setClassify(String classify) {
        this.classify = classify;
    }

    public String getPicture() {
        return picture;
    }

    public void setPicture(String picture) {
        this.picture = picture;
    }

    public Long getFolio() {
        return folio;
    }

    public void setFolio(Long folio) {
        this.folio = folio;
    }

    @Override
    public String toString() {
        return "BookIndex{" +
                "id=" + id +
                ", indexName='" + indexName + '\'' +
                ", author='" + author + '\'' +
                ", press='" + press + '\'' +
                ", price=" + price +
                ", oldPrice=" + oldPrice +
                ", info='" + info + '\'' +
                ", stock=" + stock +
                ", saleCount=" + saleCount +
                ", classify='" + classify + '\'' +
                ", picture='" + picture + '\'' +
                ", folio=" + folio +
                '}';
    }
}
